import React, { Component } from 'react';
import { StyleSheet, Text, View, Dimensions } from "react-native";
const ScreenWidth = Dimensions.get('window').width;
const scale = ScreenWidth / 375;

export class PriceTypeUI extends Component {
	constructor(props) {
		super(props);
		this.state = {}
	}


	render() {
		let { data, styleObj } = this.props;
		let { priceType } = data || {};
		return (
			<View >
				{priceType == '2' ? <Text style={[styles.priceType, styles.priceType2, styleObj]}>暂定价</Text> : <Text style={[styles.priceType, styles.priceType1, styleObj]}>一口价</Text>}
			</View>
		)
	}
}

const styles = StyleSheet.create({
	priceType: {
		fontSize: 10 * scale,
		marginLeft: 5 * scale,
		paddingHorizontal: 3 * scale,
		paddingVertical: 2 * scale,
		fontSize: 11 * scale,
	},
	priceType2: { color: '#FA6400', backgroundColor: '#FBEFE8' },
	priceType1: { color: '#85C0EC', backgroundColor: '#ECF7FF' }
})